import React, { Component } from "react";
import UserDetail from "./UserDetail";
import UserList from "./UserList";
import { Switch, Route } from "react-router-dom";
export default class User extends Component<any, any> {
  render() {
    return (
      <div>
        user page 此处有路由嵌套111
        <Switch>
          <Route path={"/user/list"} exact>
            <UserList />
          </Route>
          <Route path={"/user/detail"}>
            <UserDetail />
          </Route>
        </Switch>
      </div>
    );
  }
}
